// 导入fs
const fs=require('fs')
// 导入path
const path=require('path')
// console.log(fs);
const pathStr=path.join('/a','b/c','../../','/d','e')
console.log(pathStr);// 输出\a\b\d\e
const pathStr2=path.join(__dirname,'./dirname.js')
console.log(pathStr2);